package com.example.helloworld;

public class Switch {
    public static void main(String[] args) {
        String name = "小王";

        switch (name){
            case "小王":
                System.out.println("他是小王");
                break;
            case "小阳":
                System.out.println("他是小阳");
            case "小民":
                System.out.println("他是小民");
                break;
            default:
                System.out.println("谁都不是");
        }
    }
}
